<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri='http://java.sun.com/jstl/fmt' prefix='fmt'%>
<fmt:setLocale value='es_PE' />
<fmt:setBundle basename='etiquetas' />
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
<head>
<title>${titulo}</title>
<script>
	function buscar(){
		document.getElementById("frm_consultaTweets").action='guardarTweets.html';
		document.getElementById("frm_consultaTweets").submit();
	}
	function obtenerTweets(){
		document.getElementById("frm_consultaTweets").action='obtenerTweets.html';
		document.getElementById("frm_consultaTweets").submit();
	}
</script>
</head>
<!--TODO place OnContextMenu="return false"-->
<body style="font-size: 10px; font-family: verdana, arial, helvetica, sans-serif;" class="claro">	
		
	<br>	
	<div align="center">
		<table class="form-table" align="center" width="95%">
			<tr>
				<td class="T1" align="center" style="font-size: 14px;">${tituloCabecera}</td>
			</tr>
		</table>	
		<br>
		<form:form id="frm_consultaTweets" name="frm_consultaTweets"
			modelAttribute="tweetViewModel" method="post">
				<table cellpadding="2" cellspacing="3" width="95%" align="center"
				class="form-table">
				<tr>
					<td>
					<table cellpadding="0" cellspacing="0" width="100%" align="center">
						<tr>
							<td colspan="4">
								<hr>
							</td>
						</tr>

						<tr  align="center">
							<td colspan="5" align="center">
							<input type="button" id="bt_submit" value="Guardar Dummy" 
								class="form-button" onclick="buscar();"
								name="bt_submit">
							<input type="button" value="Obtener Tweets" class="form-button"
							onclick="obtenerTweets();"/></td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
		</form:form>
	</div>
</body>
</html>
